<?php
/**
 * Excepción abstracta padre de todas las excepciones del proyecto.
 * 
 * @author Willy A. Kuster
 */
abstract class AmicitiaException extends Exception {
	
	private $previous;

	public function __construct($message, $code = 0, Exception $previous = null) {
		$this->previous = $previous;
		parent::__construct($message, $code);
	}
	
	final public function getPrevious() {
		return $this->previous;
	}

}
?>